﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSA.Policlinic.UI.WFApplicationWCF.RegistryServiceReference
{
    public partial class Schedule : BusinessObjectBase
	{
   
		
		public Schedule()
		{

		}

        public Schedule(int id, bool isDeleted, TimeSpan timeFrom, TimeSpan timeTo, string days)
            : base(id, isDeleted)
        {
            TimeFromField = timeFrom;
            TimeToField = timeTo;
            DaysField = days;
        }

        public Schedule(TimeSpan timeFrom, TimeSpan timeTo, string days)
        {
            TimeFromField = timeFrom;
            TimeToField = timeTo;
            DaysField = days;
        }

      

        

        public override string ToString()
        {
            return Days + ", " + TimeFrom.Hours + "." + TimeFrom.Minutes + ":" + TimeTo.Hours + "." + TimeTo.Minutes;
        }
		
		
	}
	
}
